package BehaviorDesignPattern.ChainOfResponsibilityPattern;

// 抽象处理者，定义了处理请求的方法和设置下一个处理者的方法
abstract class Approver {
    protected Approver nextApprover; // 下一个处理者

    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    public abstract void approveRequest(int amount);
}